﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MineSweeperChallenge
{
    static class SweeperUtils
    {

        public static string GetMineFieldDump(this int[][] pMineField)
        {
            StringBuilder lResult = new StringBuilder();
            for (int i = 0; i < pMineField.Length; i++)
            {
                for (int j = 0; j < pMineField[0].Length; j++)
                {
                    lResult.Append(string.Format("[{0}]", pMineField[i][j]));
                }
                if (i < pMineField.Length - 1) lResult.Append("\n");
            }
            return lResult.ToString();
        }
    }
}
